package com.backstage.dao;

import com.backstage.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUserName(String name);

    @Select("select count(*) from user_table")
    int selectUserTobal();

    List<User> selectUserList(User record);
}